package il.ac.tau.dbcourse.db;

import il.ac.tau.dbcourse.db.annotations.SQLTable;

import java.sql.Connection;

@SQLTable(table = "")
public abstract class AbsPersistence {

	protected String tableName;
	protected Long id;

	private boolean dirty;

	protected void setDirty(boolean flag) {
		dirty = flag;
	}

	public boolean isDirty() {
		return dirty;
	}

	public Long getId() {
		return id;
	}

	protected abstract Long saveImpl(Connection conn);

}